// 接口的继承
{
  interface PlayEndInterface {
    end(): void
  }
  interface MultiInterface {
    test(): void
  }
  interface AnimationInterface extends PlayEndInterface {
    name: string,
    move(): void
  }
  class Tank implements AnimationInterface {
    name: string = '敌军'
    public move(): void {
      console.log('敌方坦克移动');
    }
    end(): void {
      console.log('Ending.....');
    }
  }
  class Player implements AnimationInterface, MultiInterface {
    name: string = '友军'
    public move(): void {
      console.log('玩家坦克移动');
    }
    end(): void {
      console.log('Ending.....');
    }
    test(): void {
      console.log('接口可以多继承');

    }
  }
  const tk = new Tank()
  const player = new Player()
  tk.move()
  player.move()
  player.end()
  player.test()
}